package com.hmz.backend.controller.friend;

import cn.hutool.json.JSONObject;
import com.hmz.backend.service.friend.DeleteFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeleteFriendController {
    @Autowired
    private DeleteFriendService deleteFriendService;
    @PostMapping("/deleteFriend")
    private JSONObject deleteFriend(@RequestBody JSONObject data){
        System.out.println("删除好友调用");
        return deleteFriendService.deleteFriend(data);
    }

}
